home *** CD-ROM | disk | FTP | other *** search
- property pMySprite, pMyMember, pMyMember2, pMyMember3
-
- on beginSprite me
- pMySprite = sprite(me.spriteNum)
- pMyMember = pMySprite.memberNum
- pMyMember2 = pMyMember - 1
- pMyMember3 = pMyMember + 1
- end
-
- on mouseEnter me
- if sprite(1).pUndoTrigger = 0 then
- pass()
- else
- set the memberNum of sprite pMySprite to pMyMember3
- case the currentSpriteNum of
- "187":
- put "Load the current image to adjust the hue, saturation, and lightness." into field "status"
- "188":
- put "Apply HSL adjustment to the current image." into field "status"
- "193":
- put "Load the current image to adjust the brightness and contrast." into field "status"
- "194":
- put "Apply tonality adjustment to the current image." into field "status"
- "198":
- put "Blur the current image." into field "status"
- "199":
- put "Sharpen the current image." into field "status"
- "200":
- put "Convert the current image to its negative." into field "status"
- "201":
- put "Colorize the current image using the foreground color." into field "status"
- end case
- end if
- end
-
- on mouseLeave me
- if sprite(1).pUndoTrigger = 0 then
- pass()
- else
- set the memberNum of sprite pMySprite to pMyMember
- put EMPTY into field "status"
- end if
- end
-
- on mouseDown me
- if sprite(1).pUndoTrigger = 0 then
- pass()
- else
- repeat while the mouseDown
- set the memberNum of sprite pMySprite to pMyMember2
- updateStage()
- end repeat
- end if
- end
-
- on mouseUp me
- if sprite(1).pUndoTrigger = 0 then
- pass()
- else
- set the memberNum of sprite pMySprite to pMyMember3
- if sprite(4).left <> 800 then
- case the currentSpriteNum of
- "187":
- beep()
- "188":
- beep()
- "193":
- beep()
- "194":
- beep()
- "198":
- blurImage32()
- "199":
- sharpenImage32()
- "200":
- invertImage32()
- "201":
- colorizeImage32()
- end case
- else
- case the currentSpriteNum of
- "187":
- loadAdjustHSL()
- "188":
- applyAdjustHSL()
- "193":
- loadAdjustTone()
- "194":
- applyAdjustTone()
- "198":
- blurImage32()
- "199":
- sharpenImage32()
- "200":
- invertImage32()
- "201":
- colorizeImage32()
- end case
- end if
- end if
- end
-